package com.apache.flow.core.dao;

import java.io.IOException;

import org.jbpm.api.model.ActivityCoordinates;
import org.springframework.stereotype.Repository;

@Repository
public interface FlowWebService {
	/**
	 * 启动流程
	 * @param definitionId
	 * @return
	 * @throws IOException 
	 */
	public String start() throws IOException;

	/**
	 * 流程顺序跳转
	 * @param taskId
	 * @return
	 * @throws IOException 
	 */
	public String approve() throws IOException;

	/**
	 * 查看流程图
	 * @param processInsId
	 * @return
	 * @throws IOException 
	 */
	public ActivityCoordinates getPicNode() throws IOException;

	/**
	 * 代办任务
	 * @param taskId  任务ID
	 * @param agentParams agentUserId  代办人Id
	 * @return 
	 * @throws IOException 
	 */
	public String agent() throws IOException;

	/**
	 * 待办任务
	 * @param loginUser
	 * @return
	 */
	public String approveData() throws Exception;
}
